#include <stdio.h>
#include <stdlib.h>

int cmp(const void* e1, const void* e2)
{
    return *(int*)e1 < *(int*)e2;
}
int findContentChildren(int* g, int gSize, int* s, int sSize) {
    int ans = 0;
    qsort(g, gSize, sizeof(int), cmp);
    qsort(s, sSize, sizeof(int), cmp);
    int i = 0, j = 0;
    for (i = 0, j = 0; i < gSize && j < sSize; i++)
    {
        if (s[j] >= g[i])
        {
            ans++;
            j++;
        }
    }
    return ans;
}

int main()
{
	return 0;
}